namespace NetMVC.Web.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class DramaCategoryParent1 : DbMigration
    {
        public override void Up()
        {
            RenameColumn(table: "dbo.DramaCategories", name: "parent_id", newName: "DramaCategory_id");
            RenameIndex(table: "dbo.DramaCategories", name: "IX_parent_id", newName: "IX_DramaCategory_id");
        }
        
        public override void Down()
        {
            RenameIndex(table: "dbo.DramaCategories", name: "IX_DramaCategory_id", newName: "IX_parent_id");
            RenameColumn(table: "dbo.DramaCategories", name: "DramaCategory_id", newName: "parent_id");
        }
    }
}
